package com.yuwei.database.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.yuwei.database.entity.GoodsEntityItem

@Dao
interface GoodsDao {
    @Query("SELECT * FROM goods_info")
    suspend fun getAll(): List<GoodsEntityItem>
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insert(goodsEntity: GoodsEntityItem)
}